<?php

use Biz\service\activity\Popup as sPopUp;

class ShowAction extends ActionPlugin
{
    public function main()
    {
        $position = $this->getRequest()->getQuery('position', 'mall_index');
        $uid = $this->uid > 0 ? $this->uid : $this->vid;
        $isVisitor = $this->uid ? false : true;
        $popUpInfo = sPopUp::getPopupInfo($uid, $isVisitor);
        $result = $popUpInfo ? $popUpInfo : null;
        $this->setSuccess($result);
    }

}
